package com.xy.xymall.order.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author XY
 * @version 1.0
 * @date 2020/10/14 14:53
 * 自定义线程池配置项,配置文件中以xymall.thread开始进行配置
 */
@ConfigurationProperties(prefix = "xymall.thread")
@Component
@Data
public class ThreadPoolConfigProperties {
    private Integer coreSize;
    private Integer maxSize;
    private Integer keepAliveTime;
}
